﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

using Modelo_ETdA.Negocio.AmbienteComercial;

namespace Modelo_ETdA.Interface
{
    public partial class RegistarAvaliacao : Form
    {
        private MenuAnaliseETdA mAnalise;
        private AmbienteComercial ambC;
        private GestorAmbienteComercial gAmbC;
        DataTable tabela = new DataTable();

        public RegistarAvaliacao(MenuAnaliseETdA anterior, AmbienteComercial ambC,GestorAmbienteComercial gest)
        {
            InitializeComponent();
            mAnalise = anterior;
            this.ambC = ambC;
            gAmbC = gest;
            tabela=gAmbC.getFormatos(ambC.Cabeçalho.Cod);
            lformatos.DataSource = tabela;
        }

        
        
        private void voltar_Click(object sender, EventArgs e)
        {
            mAnalise.Visible = true;
            this.Visible = false;
        }
    }
}
